/**
 * 
 */
package com.jeearsenal.utils;

/**
 * @author Ashish Kumar Sinha
 *
 */
public class StringUtils {
	
	/**
	 * to check if the value is blank.
	 * 
	 * @param value - the input string
	 * @return <code>true</code> only if input string is <code>null</code> or
	 * contains only one or more white spaces or its length is 0.
	 */
	public boolean isBlank(String value) {
		if(value == null ) {
			 return true;
		} else if (value.trim().isEmpty()) {
			return true;
		}
		return false;
	}

}
